<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <!--<script src="jquery-3.2.1.min.js"></script>-->
    <script src="http://1.xinli2017.applinzi.com/weixin/js/jquery.min.js"></script>
    <title>查询</title>
</head>
<body>
	<h1>查询银联4的商户编号</h1>
	<hr>

    <div>
        <input type="text" id="ordercode" placeholder="请输入订单号" style="width:20%;height:20px;padding:10px 0;"/>
    </div>
    <br>
    <div>
        <button id="btn"
                style="width:10%;height:40px;padding:10px 0;background:#37c3e7;border:0;">查询
        </button>
    </div>

    <script type="text/javascript">

        $('#btn').click(function () {
            var jsonobj = {
                "order_code":$('#ordercode').val()
            }

            $.ajax({
                type: 'POST',
                url: 'http://106.14.28.146/v1.0/paymentchannel/ybnew/querymerchantby/ordercode',
                data: jsonobj,
                datatype: 'json',
                success: function (res) {
                    console.log(res);
                    if(res.resp_code=='000000'){
                        alert(res.result)

                    }

                },
                error:function (err){
                    console.log(err)
                }

            })

            }

        )

    </script>



</body>
</html>